#@Time : 2021/10/3015:55
#@Author : xujian
#Canvas组件实现画图
# create_line  create_rectangle  create_text  create_oval create_polygon

# https://blog.csdn.net/qq_41556318/article/details/85272026
#各种详细属性详见此网址

from tkinter import *
top=Tk()

c1=Canvas(top,width=200,heigh=100,background="yellow")
c1.create_line(50,50,200,100,fill="red",dash=4)

c1.pack()
mainloop()






